package com.ygy.jxc.util;

import com.ygy.jxc.constant.SystemConstant;

import java.math.BigDecimal;


/**
 *    (kg)公斤 = (volume)容积（长cmx宽cmx高cm）/6000     1立方米=10的六次方厘米
 *
 *     Volume  容积立方米
 */

public  class calculationUtils {


    public static BigDecimal INTCalculatingVolumeToWeight(Long Volume ){
        Volume= Volume * SystemConstant.SQUARECEMETERTONTIMETER;     //转为立方厘米
//        System.out.println("立方米------->立方厘米\t"+Volume);
        BigDecimal   a=  new BigDecimal(String.valueOf(Volume));
        BigDecimal weight = a.divide(BigDecimal.valueOf(SystemConstant.DENOMINATOR),0);  //除法，
//        System.out.println("转化后："+weight);
        return  weight;
    }
}
